var visible = false;

function setVisible (id){
    
    var bloco = document.getElementById(id);
    
    if (visible)
    {
        bloco.style.display = "none";
        visible = false;
    }
    else
    {
        bloco.style.display = "block";
        visible = true;
    }
}